package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class MajorCategory implements SqlCondition {

    private int beginIndex;
    private int endIndex;
    private boolean sqlException;
    private boolean sqlWarning;
    private boolean notFound;

    public MajorCategory(int beginIndex, int endIndex, boolean sqlException, boolean sqlWarning, boolean notFound) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sqlException = sqlException;
        this.sqlWarning = sqlWarning;
        this.notFound = notFound;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isSqlException() {
        return sqlException;
    }

    public boolean isSqlWarning() {
        return sqlWarning;
    }

    public boolean isNotFound() {
        return notFound;
    }

}
